<?php
$conn = mysql_connect('localhost','root','root');                                                   //链接mysql
$db = mysql_select_db('test',$conn) or die('数据库连接错误'.mysql_error());                             	//连接数据库test
mysql_query('set names utf8');
